<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>新增用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>
<form class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名<span class="layui-badge-dot"></span></label>
        <div class="layui-input-block">
            <input type="text" name="username" id="username" required lay-verify="required"
                   placeholder="请输入用户名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学号<span class="layui-badge-dot"></span></label>
        <div class="layui-input-inline">
            <input type="number" name="studentId" id="studentId" required lay-verify="required"
                   placeholder="请输入学号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">学号ID</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学历<span class="layui-badge-dot"></span></label>
        <div class="layui-input-block">
            <select name="degree" id="degree" lay-verify="required">
                <option value=""></option>
                <option value="primary">小学</option>
                <option value="junior">初中</option>
                <option value="high">高中</option>
                <option value="college">大专</option>
                <option value="university">本科</option>
                <option value="master">硕士</option>
                <option value="doctor">博士</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">启用/禁用</label>
        <div class="layui-input-block">
            <input type="radio" name="dataEnable" value="yes" title="启用" checked>
            <input type="radio" name="dataEnable" value="no" title="禁用">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-block">
            <input type="radio" name="gender" value="male" title="男">
            <input type="radio" name="gender" value="female" title="女" checked>
            <input type="radio" name="gender" value="secret" title="保密">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" id="phone"
                   placeholder="请输入您的电话号码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="text" name="email" id="email"
                   placeholder="请输入您的邮箱" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">
            <input type="text" name="birthday" id="birthday" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家乡</label>
        <div class="layui-input-block">
            <input type="text" name="hometown" id="hometown"
                   placeholder="请输入您的家乡" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">地址</label>
        <div class="layui-input-block">
            <input type="text" name="address" id="address"
                   placeholder="请输入您的现居住地址" autocomplete="off" class="layui-input">
        </div>
    </div>

    <!--上传头像-->
    <div class="layui-form-item">
        <button type="button" class="layui-btn layui-input-block" id="avatarImg">
            <i class="layui-icon">&#xe67c;</i>上传头像
        </button>
        <div class="layui-input-block">
            <img src="" width="100px" height="100px" id="priview" style="margin: 5px 0">
            <span>图片地址：</span>
            <input type="text" class="layui-input-block" id="avatar" name="avatar" readonly>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">自我介绍</label>
        <div class="layui-input-block">
            <textarea name="introduce" id="introduce" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序号</label>
        <div class="layui-input-inline">
            <input type="number" name="sequence" id="sequence" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

<!--js引用-->
<script src="/layui/layui.js" charset="utf-8"></script>
<script src="/js/common.js"></script>
<script src="/js/back/user/userAdd.js" charset="utf-8"></script>

</body>
</html>